package ca.etsmtl.log430.lab3.donnee;

import ca.etsmtl.log430.lab3.donnee.ifaces.CourseReader;
import ca.etsmtl.log430.lab3.donnee.ifaces.TeacherReader;
import ca.etsmtl.log430.lab3.donnee.txtreader.FileCourseReader;
import ca.etsmtl.log430.lab3.donnee.txtreader.FileTeacherReader;
public class ReaderFactory {

	/**
	 * @uml.property  name="courseReader"
	 * @uml.associationEnd  
	 */
	private CourseReader courseReader;
	/**
	 * @uml.property  name="teacherReader"
	 * @uml.associationEnd  
	 */
	private TeacherReader teacherReader;
	public ReaderFactory(String courseFileName, String teacherFileName) {
		courseReader = new FileCourseReader(courseFileName);
		teacherReader = new FileTeacherReader(teacherFileName);
	}
	/**
	 * @return
	 * @uml.property  name="courseReader"
	 */
	public CourseReader getCourseReader() {
		
		return courseReader;
	}
	/**
	 * @return
	 * @uml.property  name="teacherReader"
	 */
	public TeacherReader getTeacherReader() {
		return teacherReader;
	}
	/**
	 * @param teacherReader
	 * @uml.property  name="teacherReader"
	 */
	public void setTeacherReader(TeacherReader teacherReader) {
		this.teacherReader = teacherReader;
	}
	/**
	 * @param courseReader
	 * @uml.property  name="courseReader"
	 */
	public void setCourseReader(CourseReader courseReader) {
		this.courseReader = courseReader;
	}
	

}
